package fastjsonDemo.JSONDemo.AnnotationDemo.JSONType;

import com.alibaba.fastjson.annotation.JSONType;

@JSONType(ignores = {"id", "sex"})  //不序列化这两个
public class Pojo2 {
	private int id;
	private String name;
	private String sex;
	private String password;
	private String phone;

	//************


	public int getId() {
		return id;
	}

	public Pojo2 setId(int id) {
		this.id = id;
		return this;
	}

	public String getName() {
		return name;
	}

	public Pojo2 setName(String name) {
		this.name = name;
		return this;
	}

	public String getSex() {
		return sex;
	}

	public Pojo2 setSex(String sex) {
		this.sex = sex;
		return this;
	}

	public String getPassword() {
		return password;
	}

	public Pojo2 setPassword(String password) {
		this.password = password;
		return this;
	}

	public String getPhone() {
		return phone;
	}

	public Pojo2 setPhone(String phone) {
		this.phone = phone;
		return this;
	}
}

